package com.mhc.suzuki.constant;

/**
 * @Description:
 * @author: kanon
 * @create: 2017/10/26 19:21
 */
public enum FlowRoleIdEnum {

    /**
     * 流程人员参数
     **/
    ROLESALESMANID("roleSalesmanId"),              //业务员id
    ROLESALESMANAGERID("roleSalesManagerId"),    //业务经理id
    ROLEAUDITORID("roleAuditorId"),            //审核员id
    ROLEAUDITORMANAGERID("roleAuditorManagerId"), //审核经理id
    ROLERISKLEADERID("roleRiskLeaderId"),         //分管领导id
    ROLEASSETSID("roleAssetsId"),                  //资产审核员id
    ROLECOOPERATIVEID("roleCooperativeId"),        //内勤人员id
    ROLEFINANCEID("roleFinanceId"),         //财务人员id
    ROLERISKCONTROLID("roleRiskcontrolId");        //风控小组id

    private String roleId;

    FlowRoleIdEnum(String roleId) {
        this.roleId = roleId;
    }

    public static boolean verify(String roleId) {
        for (FlowRoleIdEnum flowRoleIdEnum : FlowRoleIdEnum.values()) {
            if (flowRoleIdEnum.roleId.equals(roleId)) {
                return true;
            }
        }
        //没有对应的类型，返回 false
        return false;
    }

}
